<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function King(){
            this.royaltyName = 'Due';
            setTimeout(() => {
                console.log(this.royaltyName)
            }, 1000);
        }
        function Queen(){
            this.royaltyName = 'Queen';
            setTimeout(function(){
                console.log(this.royaltyName);
            },1000);
        }
        new King();
        new Queen();
    </script>
</head>
<body>
    
</body>
</html>